/*
 ============================================================================
 Name		: CelestialSphereDocument.cpp
 Author	  : Den Grigorenko
 Copyright   : Copyright (c) 2008 Den123
 Description : CCelestialSphereDocument implementation
 ============================================================================
 */

// INCLUDE FILES
#include "CelestialSphereAppUi.h"
#include "CelestialSphereDocument.h"

// ============================ MEMBER FUNCTIONS ===============================

// -----------------------------------------------------------------------------
// CCelestialSphereDocument::NewL()
// Two-phased constructor.
// -----------------------------------------------------------------------------
//
CCelestialSphereDocument* CCelestialSphereDocument::NewL(CEikApplication& aApp)
{
	CCelestialSphereDocument* self = NewLC(aApp);
	CleanupStack::Pop(self);
	return self;
}

// -----------------------------------------------------------------------------
// CCelestialSphereDocument::NewLC()
// Two-phased constructor.
// -----------------------------------------------------------------------------
//
CCelestialSphereDocument* CCelestialSphereDocument::NewLC(CEikApplication& aApp)
{
	CCelestialSphereDocument* self = new ( ELeave ) CCelestialSphereDocument( aApp );

	CleanupStack::PushL(self);
	self->ConstructL();
	return self;
}

// -----------------------------------------------------------------------------
// CCelestialSphereDocument::ConstructL()
// Symbian 2nd phase constructor can leave.
// -----------------------------------------------------------------------------
//
void CCelestialSphereDocument::ConstructL()
{
	// No implementation required
}

// -----------------------------------------------------------------------------
// CCelestialSphereDocument::CCelestialSphereDocument()
// C++ default constructor can NOT contain any code, that might leave.
// -----------------------------------------------------------------------------
//
CCelestialSphereDocument::CCelestialSphereDocument(CEikApplication& aApp) :
	CAknDocument(aApp)
{
	// No implementation required
}

// ---------------------------------------------------------------------------
// CCelestialSphereDocument::~CCelestialSphereDocument()
// Destructor.
// ---------------------------------------------------------------------------
//
CCelestialSphereDocument::~CCelestialSphereDocument()
{
	// No implementation required
}

// ---------------------------------------------------------------------------
// CCelestialSphereDocument::CreateAppUiL()
// Constructs CreateAppUi.
// ---------------------------------------------------------------------------
//
CEikAppUi* CCelestialSphereDocument::CreateAppUiL()
{
	// Create the application user interface, and return a pointer to it;
	// the framework takes ownership of this object
	return new ( ELeave )CCelestialSphereAppUi;
}

// End of File
